<html>
<head>
  <meta http-equiv="content-type" content="text/html;charset=utf-8" />
  <meta name="robots" content="noindex, nofollow" />
  <title><%=@page_title || 'Trikr.com - an collaborate project management tool'.t%></title>
  <%= stylesheet_link_tag 'style','digg_nav_tab','calendar/grey/style' %>
  <%= javascript_include_tag "prototype","scriptaculous","append","timepicker","DynamicOptionList",'tooltip','FusionCharts'%>
  <%= javascript_include_tag "/fckeditor/fckeditor"%>
  <%= calendar_date_select_includes%>
  <link rel="shortcut icon" href="/images/favicon.ico" />
</head>
<body onload="initDynamicOptionLists();">

<%=render :partial=>'layouts/top_nav'%>
<div id="Header">
  <h1>
  <%=@project.name%> 
  <span> - <%=@cur_user.company.name if @cur_user.company%> </span>
  </h1>
  <DIV id="Tabs">
    <UL id="MainTabs">
	<%=nav_link 'Overview'.t,logs_url(params[:project_id])%>
	<%=nav_link 'Messages'.t, messages_path(params[:project_id])%>
	<%=nav_link 'To-Do'.t, todos_path(params[:project_id])%>
	<%=nav_link 'Milestones'.t,milestones_url(params[:project_id])%>
	<%=nav_link 'Writeboards'.t,writeboards_url(params[:project_id])%>
	<%=nav_link 'Times'.t,time_logs_url(params[:project_id])%>
	<%=nav_link 'Files'.t,files_url(params[:project_id])%>
 
      <span style="float:right;margin-right:30px">
        <%=nav_link 'People'.t,'/projects/' + params[:project_id] + '/people'%>
        <%#nav_link 'Permissions'.t,'/projects/' + params[:project_id] + '/permission'%>
        <%#nav_link image_tag("USD12.png",:border=>0,:title=>'Invite your friends to use trikr and we will pay you 20% of their payment, FOR EVER!'),"#",""%>
      </span>
   </UL>
   </DIV>
</div>
<!--header end-->

<div id="Wrapper">
  <table class="layout">
    <tr><td class="left">
        <div class="page_header">
        </div>
        <div id="content">
        <%= @content_for_layout %>
        </div>
      </td><td class="right">
      <div id="sidebar">
         <%=link_to "10 minutes trikr tutorial!".t,"/files/docs/10_mins_trikr_tutorial.doc",:target=>'blank'%>
         <br/>
         <br/>
         <%= render :partial => 'sidebar' %>
      </div>
      </td>
      </tr>
     </table>
</div>
<div id=footer>
&copy All Data are belong to <b><%=@cur_user.company.name%></b>
</div>

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-3794989-1";
urchinTracker();
</script>

</body>
</html>
